<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '98%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '73%';
}
?>
<div class="content" style="width:<?php echo $width_content; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a" data-inset="true">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul><br />
    <?php foreach ($downloads as $download) { ?>
        <ul class="download-list" data-role="listview" data-inset="true">
            <li class="download-id"><b><?php echo $text_order; ?></b> <?php echo $download['order_id']; ?></li>
            <li class="download-status"><b><?php echo $text_size; ?></b> <?php echo $download['size']; ?></li>
            <li class="download-content">
                <div><b><?php echo $text_name; ?></b> <?php echo $download['name']; ?><br />
                    <b><?php echo $text_date_added; ?></b> <?php echo $download['date_added']; ?></div>
                <div><b><?php echo $text_remaining; ?></b> <?php echo $download['remaining']; ?></div>
                <div class="download-info">
                    <?php if ($download['remaining'] > 0) { ?>
                        <a data-role="button" data-icon="arrow-d" href="<?php echo $download['href']; ?>" class="button"><span><?php echo $text_download; ?></span></a>
                    <?php } ?>
                </div>
            </li>
        </ul><br />
    <?php } ?>
    <div class="pagination"><?php echo $pagination; ?></div>
    <div class="buttons">
        <div class="right"><a data-role="button" data-icon="arrow-l" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
    </div>
    <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>